package top.wu2020.lazy.ws.chat.infrastructure.converter;

import top.wu2020.lazy.ws.chat.domain.model.community.Community;
import top.wu2020.lazy.ws.chat.infrastructure.entity.CommunityDO;
import org.mapstruct.factory.Mappers;
import org.mapstruct.Mapper;
/**
 * describe community 
 *
 * @author Jia wei Wu
 * @date 2024/05/24 08:52 晚上
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureConverter 
 **/
@Mapper
public interface CommunityConverter {


    /**
     * describe MapStruct 创建的代理对象
     *
     
     
     
     * @author Jia wei Wu
     * @date 2024/05/24 08:52 晚上
     **/
    CommunityConverter INSTANCE = Mappers.getMapper(CommunityConverter.class);
    /**
     * describe 实体对象 转换成领域对象
     *
     * @param communityDO 实体对象     
     * @return {@link Community} 领域对象     
     
     * @author Jia wei Wu
     * @date 2024/05/24 08:52 晚上
     **/
    Community toCommunity(CommunityDO communityDO);
    /**
     * describe 领域对象 转换成实体对象
     *
     * @param community 领域对象     
     * @return {@link CommunityDO} 实体对象     
     
     * @author Jia wei Wu
     * @date 2024/05/24 08:52 晚上
     **/
     CommunityDO fromCommunity(Community community); 
}